﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using CH.Easy.DbProvider.Core;

namespace CH.Easy.DbProvider.Interface
{
    public interface IEditTable<TEntity>
    {
        int Remove(Specification<TEntity> s);
        int Remove(Expression<Func<TEntity, bool>> s);
        int Add(object obj);
        int Modify(TEntity t, Specification<TEntity> s, params string[] modifyColumns);
        int Modify(TEntity t, Expression<Func<TEntity, bool>> s, params string[] modifyColumns);
    }
}
